#ifndef _FACTORY_SETTING_UI_H_
#define _FACTORY_SETTING_UI_H_
#include "gd32f3x0.h"
#include "basic_ui.h"
#include "bsp_config_param.h"

//这里针对的是下面的两个色块
#define  FACT_SETT_NUM     3


#define  REPEL_FACT_SETT_NUM     7    //包含一个退出
#define   AUTO_REPEL_NUM     1
#define   AREA_FACTORY_NUM     3
#define  SWITCH_STAT_NUM         2
#define  INIT_TIME_NUM  1

#define  FUMI_FACT_SETT_NUM     6     //包含一个退出      
#define FUMIGATE_TIME_NUM      1
#define TIMES_PER_1m2_NUM      1
#define TARGET_TEMP_NUM     1
#define HOUSE_HEIGHT_NUM     1
#define EVACUATION_TIMES_NUM     1



extern char InitRepelTimeBuf[15];   //
void InitRepelTimeInit(void);

extern char AirCondiOpenBuf[15];   //
void AirCondiOpenTimeInit(void);

extern char AirCondiCloseBuf[15];   //
void AirCondiCloseTimeInit(void);

extern char MaternalOpenBuf[15];   //
void MaternalOpenTimeInit(void);

extern char MaternalCloseBuf[15];   
void MaternalCloseTimeInit(void);

extern char NormalOpenBuf[15];   //
void NormalOpenTimeInit(void);

extern char NormalCloseBuf[15];   
void NormalCloseTimeInit(void);

extern char Area10m2FactoryBuf[15];   //
void Area10m2FactoryInit(void);

extern char Area20m2FactoryBuf[15];   //从物理的角度来看
void Area20m2FactoryInit(void);

extern char Area30m2FactoryBuf[15];   //从物理的角度来看
void Area30m2FactoryInit(void);

extern char AutoRepelBuf[15];   //
void AutoRepelInit(void);

extern char FumiTimeBuf[15];
void FumiTimeInit(void);

extern char TimesPer1m2Buf[15];
void TimesPer1m2Init(void);

extern char TargetTempBuf[15];
void TargetTempInit(void);

extern char HouseHeightBuf[15];
void HouseHeightInit(void);

extern char EvacuationTimesBuf[15];
void EvacuationTimesInit(void);

extern MenuItem_Typedef InitTimeMenu[INIT_TIME_NUM];  //初始时间菜单数组
extern MenuItem_Typedef AirCondiSwitchMenu[SWITCH_STAT_NUM];  //空调菜单驱蚊数组
extern MenuItem_Typedef MaternalSwitchMenu[SWITCH_STAT_NUM];  //母婴开关菜单驱蚊数组
extern MenuItem_Typedef NormalSwitchMenu[SWITCH_STAT_NUM];  //正常开关菜单驱蚊数组
extern MenuItem_Typedef AreaFactoryMenu[AREA_FACTORY_NUM];  //面积因子菜单数组
extern MenuItem_Typedef AutoRepelMenu[AUTO_REPEL_NUM];  //智能检测驱蚊菜单数组
extern MenuItem_Typedef RepelFactorySettMenu[REPEL_FACT_SETT_NUM];  //驱蚊出厂条目菜单数组
extern MenuItem_Typedef FactorySettMenu[FACT_SETT_NUM];  //状态条目菜单数组

extern MenuItem_Typedef FumiTimeMenu[FUMIGATE_TIME_NUM]; //灭蚊时间条目菜单数组
extern MenuItem_Typedef TimesPer1m2Menu[TIMES_PER_1m2_NUM]; //灭蚊出厂条目菜单数组
extern MenuItem_Typedef TargetTempMenu[TARGET_TEMP_NUM]; //灭蚊出厂条目菜单数组
extern MenuItem_Typedef HouseHeightMenu[HOUSE_HEIGHT_NUM]; //灭蚊出厂条目菜单数组
extern MenuItem_Typedef EvacuationTimesMenu[EVACUATION_TIMES_NUM]; //排气次数条目菜单数组

extern MenuItem_Typedef FumiFactorySettMenu[FUMI_FACT_SETT_NUM];  //灭蚊出厂条目菜单数组

void EvacuationTimesMenuInit(void);
void HouseHeightMenuInit(void);
void TargetTempMenuInit(void);
void TimesPer1m2MenuInit(void);
void FumiTimeMenuInit(void);
void FumiFactorySettMenuInit(void);

void InitRepelTimeMenuInit(void);
void AirCondiSwitchMenuInit(void);
void MaternalSwitchMenuInit(void);
void NormalSwitchMenuInit(void);
void AreaFactoryMenuInit(void);
void AutoRepelMenuInit(void);
void RepelFactorySettMenuInit(void);
void FactorySettMenuInit(void);


void Factory_Setting_Ui(void);


void FactorySettingIncFunction(void);

#endif